package dome2;

public class Cat extends Animal{

    static {
        System.out.println("Cat::static{}");
    }

    {
        System.out.println("Cat::{}");
    }

    public Cat (String name,int age) {
        super(name,age);
        System.out.println("Cat带两个参数的构造方法");
    }



    public void miaiomiao(){
        System.out.println(name+"喵喵叫.......");
    }

    class RuralCat extends Cat{
        public RuralCat (String name,int age) {
            super(name,age);
            System.out.println("Cat带两个参数的构造方法");
        }
    }
}
